package com.rzl.expense.quartz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzl.expense.common.annotation.Excel;
import com.rzl.expense.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 任务列表对象 task
 *
 * @author expense
 * @date 2024-06-27
 */
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String filePeriod;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String filePath;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String execStatus;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileUpdateDate;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFilePeriod(String filePeriod)
    {
        this.filePeriod = filePeriod;
    }

    public String getFilePeriod()
    {
        return filePeriod;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setExecStatus(String execStatus)
    {
        this.execStatus = execStatus;
    }

    public String getExecStatus()
    {
        return execStatus;
    }
    public void setFileUpdateDate(String fileUpdateDate)
    {
        this.fileUpdateDate = fileUpdateDate;
    }

    public String getFileUpdateDate()
    {
        return fileUpdateDate;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("filePeriod", getFilePeriod())
                .append("fileName", getFileName())
                .append("filePath", getFilePath())
                .append("execStatus", getExecStatus())
                .append("fileUpdateDate", getFileUpdateDate())
                .append("fileType", getFileType())
                .append("creatTime", getCreatTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
